﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Lhz.Framework.Test.Entity
{
    [DataContract(IsReference = true)]
    public class Student
    {
        [DataMember]
        public virtual Guid Guid { get; set; }

        [DataMember]
        public virtual string Name { get; set; }

        [DataMember]
        public virtual IList<Book> Books { get; set; }

        [DataMember]
        public virtual IList<Teacher> Teachers { get; set; }

        [DataMember]
        public virtual Guid HeadteacherGuid { get; set; }

        [DataMember]
        public virtual Teacher Headteacher { get; set; }
    }
}
